package org.jmsmith.utilities.io;

public class ZipUtility {

    public static void main(String[] args) {
        if (args != null && args.length == 3) {
            if (args[0].equalsIgnoreCase("extract")) {
                Extractor.main(args);
            } else if (args[0].equalsIgnoreCase("compress")) {
                Compressor.main(args);
            } else {
                throw new IllegalArgumentException("usage java -jar ziputils.jar <compress | extract> zipfile outputdir");
            }
        } else {
            throw new IllegalArgumentException("usage java -jar ziputils.jar <compress | extract> zipfile outputdir");
        }
    }
}
